import Vue from 'vue';
import Vuex from 'vuex';
import user from './modules/user';
import account from './modules/account';
import app from './modules/app';
import upload from './modules/upload';
import order from './modules/order';
import other from './modules/other';

Vue.use(Vuex);

const debug = process.env.NODE_ENV !== 'production';
const store = new Vuex.Store({
  modules: {
    user,
    account,
    app,
    upload,
    order,
    other,
  },
  strict: debug,
});

export default store;
